package com.nbut.filesystem;

import java.io.Serializable;
import java.util.HashMap;
import java.util.LinkedList;

/**
 * 用户文件表类
 */
public class UserFileList implements Serializable {

    private static final long serialVersionUID = 2L;
    //空闲的真实文件名,当每次删除文件时，就会将空闲的文件名加入链表
    private LinkedList<String> freeFileName;
    //用户文件表，key代表虚拟文件名，value代表真实文件名
    private HashMap<String,String> libMap;

    public UserFileList(LinkedList<String> freeFileName, HashMap<String, String> libMap) {
        this.freeFileName = freeFileName;
        this.libMap = libMap;
    }

    public HashMap<String, String> getLibMap() {
        return libMap;
    }

    public LinkedList<String> getFreeFileName() {
        return freeFileName;
    }

}
